import Router from 'koa-router'
import bookRouter from './book'

const router = new Router()

router.get('/', async (ctx, next) => {
  ctx.body = 'hello world'
  await next()
})

router.use('/book', bookRouter.routes(), bookRouter.allowedMethods())

export default router
